package datatypes.film;

import java.util.ArrayList;
import java.util.List;

public class filmGenres {
	List<filmGenre> film_genres;

	public filmGenres() {
		this.film_genres = new ArrayList<filmGenre>();
	}

	public filmGenres(filmGenre film_genre) {
		this.film_genres = new ArrayList<filmGenre>();
		this.film_genres.add(film_genre);
	}

	public filmGenres(List<filmGenre> film_genres) {
		this.film_genres = new ArrayList<filmGenre>();
		this.film_genres.addAll(film_genres);
	}


	public void addGenre(filmGenre film_genre) {
		this.film_genres.add(film_genre);
		
	}

	public List<filmGenre> getGenres() {
		return this.film_genres;
	}

	public String toString() {
		StringBuilder sb = new StringBuilder();
		int filmIndex = 1;
		for (filmGenre film_genre : film_genres) {
			sb.append("film_genre <" + filmIndex++ + ">: \n");
			sb.append(film_genre.toString() + "\n");
		}

		return sb.toString();
	}


	 
}
